<div style="position:absolute;" class="popup_edit">
    请输入头像URL地址(建议使用tu.6.cn):
    <br/>
    <input id="avatar_path" type="text" size="50" value="http://" />
    <br/>
    <center>
        <input id="submit_avatar_path" type="button" value="提交" />  <input id="close_avatar_path" type="button" value="取消" />
    </center>
</div>
<style>
    .popup_edit {
        color: #000;
        font: 12px / 1.6em Helvetica, Arial, sans-serif;
        text-align: left;
        line-height: 1.4em;
        padding: 10px;
        overflow: hidden;
        border: 1px solid #CAD9EA;
        background: #FFF url("../../images/default/portalbox_bg.gif");
        background-repeat: repeat-x;
        background-position: 0 1px;
    }
	
	.popup_edit input, .popup_edit textarea {
        border-width: 1px;
        background: #FFF;
        border-color: #DDD;
        padding: 2px;
    }
</style>
<script>
	$("#close_avatar_path").click(tb_remove);
	$("#submit_avatar_path").click(function() {
		var avatar_path = $("#avatar_path").val();
		$.post("/my/update_avatar", {avatar_path: avatar_path}, function(data) {
			if (data == "success") {
				tb_remove();
				$('img', '#avatar').attr('src', avatar_path);
			}
		});
	});
</script>
